// 属性装饰器
function Path(p1: string, p2: string) {
	return function(target) {//target 为 Phone.prototype
		Object.defineProperty(target, 'pathA', {
		    value: p1 + p2,
		});
	}
}

class Phone {
	@Path("/hello", "/world")
	name = "mm1";
}
const p1 = new Phone();
console.log(p1);